#ifndef _STRAT_HPP
#define _STRAT_HPP

#include "world.hpp"

using namespace std;

extern pathfinder<World,map_chunk> pf;
extern map_chunk *astart;
extern map_chunk *aend;
extern list<map_chunk*> path;


class Strat{

    public:
     unsigned int time;
     unsigned int timeOut;
     unsigned int myPv;
     unsigned int goalPv;
     unsigned int myPopulation;
     unsigned int ennemyPopulation;
     unsigned int maxPopulation;
     unsigned int mySugar;
     unsigned int nbrSugarMiner;
     unsigned int nbrPvMiner;
     unsigned int defenseArbre;
     unsigned int defenseBase;
     unsigned int defenseSource;
     unsigned int dangerArbre;
     unsigned int dangerBase;
     unsigned int dangerSource;
     unsigned int nbrHealer;
     unsigned int generalHealth;
     unsigned int nbrAttacker;
     unsigned int nbrPotentialIdler; //nbr de vieux + idler

    private:
     unsigned int iaActive;
     unsigned int allowCreationOfCherry;
     unsigned int allowCreationOfKiwi;
     unsigned int allowCreationOfNut;

     public:

     void run(void);


    void init();

    Strat();


    private:
     void majParam(void);
     Fruit* chooseUnit(int a);

     void calculate(void);//lancer le calcul de gestion des task
     void playTurn(void); //lancer l'execution des taches des fruits

};

#endif

